package Judge.JudgeMainFrame.JudgeMainFrameView;

import java.awt.EventQueue;
import javax.swing.JButton;
import javax.swing.JFormattedTextField;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.UIManager;

public class ChangePasswordFrame 
{

	private JPasswordField ConfrimPasswordField;
	private JPasswordField newPasswordField;
	private JPasswordField currentPasswordField;
	private JFrame frame;

	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) 
	{
		try
		{
		    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ChangePasswordFrame window = new ChangePasswordFrame();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application
	 */
	public ChangePasswordFrame() 
	{
		
		try
		{
		    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
		createContents();
		
	}

	/**
	 * Initialize the contents of the frame
	 */
	private void createContents() 
	{
		frame = new JFrame();
		frame.getContentPane().setLayout(null);
		frame.setTitle("ChangePassword");
		frame.setBounds(100, 100, 500, 289);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		final JLabel currentPasswordLabel = new JLabel();
		currentPasswordLabel.setText("Current Password");
		currentPasswordLabel.setBounds(30, 47, 102, 15);
		frame.getContentPane().add(currentPasswordLabel);

		currentPasswordField = new JPasswordField();
		currentPasswordField.setBounds(152, 44, 226, 21);
		frame.getContentPane().add(currentPasswordField);

		final JLabel newPasswordLabel = new JLabel();
		newPasswordLabel.setText("New Password");
		newPasswordLabel.setBounds(54, 103, 78, 15);
		frame.getContentPane().add(newPasswordLabel);

		newPasswordField = new JPasswordField();
		newPasswordField.setBounds(152, 100, 226, 21);
		frame.getContentPane().add(newPasswordField);

		final JLabel confrimPasswordLabel = new JLabel();
		confrimPasswordLabel.setText("Confrim Password");
		confrimPasswordLabel.setBounds(30, 152, 102, 15);
		frame.getContentPane().add(confrimPasswordLabel);

		ConfrimPasswordField = new JPasswordField();
		ConfrimPasswordField.setBounds(152, 149, 226, 21);
		frame.getContentPane().add(ConfrimPasswordField);

		final JButton changepasswordButton = new JButton();
		changepasswordButton.setText("ChangePassword");
		changepasswordButton.setBounds(96, 213, 117, 23);
		frame.getContentPane().add(changepasswordButton);

		final JButton exitButton = new JButton();
		exitButton.setText("Exit");
		exitButton.setBounds(279, 213, 99, 23);
		frame.getContentPane().add(exitButton);
	}
}
